<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require  'dbcon.php';//(1)数据库连接  include
$result=$db->query("select * from tb_emp  order by  e_id  desc");
//处理结果集--取结果集行的数目    
$num=$result->num_rows;

//$bbsdata=$result->fetch_all(MYSQLI_NUM);//产生的这个数组是二维索引数组，下标是数字
$bbsdata=$result->fetch_all(MYSQLI_ASSOC);//产生的这个数组是二维关联数组，下标是字符串
//$bbsdata=$result->fetch_all(MYSQLI_BOTH);//产生的这个数组是二维关联索引数组，下标是数字和字符串
//var_dump($bbsdata);
$result->free_result();
$db->close();//关闭数据库连接
require "edit_html.php";


